const db = uniCloud.database()
exports.main = async (event, context) => {
	const {
		detail,
		picUrls
	} = event
	const collection = db.collection('article')
	const res = await collection.add({
		...detail,
		picUrls,
		posttime: Date.now()
	})
	return res
};